package com.sl.au.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 投诉建议实体表
 */
@Entity
@Table(name = "sl_crm_productMess")
public class ProductMess extends Root{
	@ManyToOne
	@JoinColumn(unique = false)
	private User user;
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
    /** 订购时间 */
    @Column(name = "dOrderTime")
    private Date orderTime;
    /** 产品型号规格 */
    @Column(name = "sTypeSpecification")
    private String typeSpecification;
    /** 数量 */
    @Column(name = "nNumber")
    private Integer number;
    @ManyToOne
    @JoinColumn(name="complain_id")//加入一列作为外键
    private AfterSaleComplain complain;

    public AfterSaleComplain getComplain() {
        return complain;
    }

    public void setComplain(AfterSaleComplain complain) {
        this.complain = complain;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getTypeSpecification() {
        return typeSpecification;
    }

    public void setTypeSpecification(String typeSpecification) {
        this.typeSpecification = typeSpecification;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
